# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=exfatprogs
pkgver=1.2.5
pkgrel=0
pkgdesc="exfat filesystem userspace tools, mkfs and fsck"
url="https://github.com/exfatprogs/exfatprogs"
arch="all"
license="GPL-2.0-or-later"
# other provider is fuse-exfat-utils
provides="exfat-utils"
provider_priority=20
replaces="exfat-utils fuse-exfat-utils"
makedepends="autoconf libtool automake linux-headers"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/exfatprogs/exfatprogs/archive/$pkgver.tar.gz"

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--libdir=/usr/lib \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
8c87e2199c0fd066516cdc4c2c92ab25521a03a6674f240fe6a42478c14a9336bc514df040020b4954edeb6e995ca131eb0c83b17015c9134a21babeee014dba  exfatprogs-1.2.5.tar.gz
"
